﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000D7 RID: 215
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AvatarSkillTree : IMessage<AvatarSkillTree>, IMessage, IEquatable<AvatarSkillTree>, IDeepCloneable<AvatarSkillTree>, IBufferMessage
	{
		// Token: 0x170002E9 RID: 745
		// (get) Token: 0x060009F2 RID: 2546 RVA: 0x0001DCE0 File Offset: 0x0001BEE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AvatarSkillTree> Parser
		{
			get
			{
				return AvatarSkillTree._parser;
			}
		}

		// Token: 0x170002EA RID: 746
		// (get) Token: 0x060009F3 RID: 2547 RVA: 0x0001DCE7 File Offset: 0x0001BEE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AvatarSkillTreeReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170002EB RID: 747
		// (get) Token: 0x060009F4 RID: 2548 RVA: 0x0001DCF9 File Offset: 0x0001BEF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AvatarSkillTree.Descriptor;
			}
		}

		// Token: 0x060009F5 RID: 2549 RVA: 0x0001DD00 File Offset: 0x0001BF00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarSkillTree()
		{
		}

		// Token: 0x060009F6 RID: 2550 RVA: 0x0001DD08 File Offset: 0x0001BF08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarSkillTree(AvatarSkillTree other) : this()
		{
			this.pointId_ = other.pointId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060009F7 RID: 2551 RVA: 0x0001DD39 File Offset: 0x0001BF39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarSkillTree Clone()
		{
			return new AvatarSkillTree(this);
		}

		// Token: 0x170002EC RID: 748
		// (get) Token: 0x060009F8 RID: 2552 RVA: 0x0001DD41 File Offset: 0x0001BF41
		// (set) Token: 0x060009F9 RID: 2553 RVA: 0x0001DD49 File Offset: 0x0001BF49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PointId
		{
			get
			{
				return this.pointId_;
			}
			set
			{
				this.pointId_ = value;
			}
		}

		// Token: 0x170002ED RID: 749
		// (get) Token: 0x060009FA RID: 2554 RVA: 0x0001DD52 File Offset: 0x0001BF52
		// (set) Token: 0x060009FB RID: 2555 RVA: 0x0001DD5A File Offset: 0x0001BF5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x060009FC RID: 2556 RVA: 0x0001DD63 File Offset: 0x0001BF63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AvatarSkillTree);
		}

		// Token: 0x060009FD RID: 2557 RVA: 0x0001DD71 File Offset: 0x0001BF71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AvatarSkillTree other)
		{
			return other != null && (other == this || (this.PointId == other.PointId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060009FE RID: 2558 RVA: 0x0001DDB0 File Offset: 0x0001BFB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PointId != 0U)
			{
				num ^= this.PointId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060009FF RID: 2559 RVA: 0x0001DE08 File Offset: 0x0001C008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000A00 RID: 2560 RVA: 0x0001DE10 File Offset: 0x0001C010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000A01 RID: 2561 RVA: 0x0001DE1C File Offset: 0x0001C01C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PointId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.PointId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000A02 RID: 2562 RVA: 0x0001DE74 File Offset: 0x0001C074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PointId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PointId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000A03 RID: 2563 RVA: 0x0001DECC File Offset: 0x0001C0CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AvatarSkillTree other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PointId != 0U)
			{
				this.PointId = other.PointId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000A04 RID: 2564 RVA: 0x0001DF1C File Offset: 0x0001C11C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000A05 RID: 2565 RVA: 0x0001DF28 File Offset: 0x0001C128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.PointId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000403 RID: 1027
		private static readonly MessageParser<AvatarSkillTree> _parser = new MessageParser<AvatarSkillTree>(() => new AvatarSkillTree());

		// Token: 0x04000404 RID: 1028
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000405 RID: 1029
		public const int PointIdFieldNumber = 1;

		// Token: 0x04000406 RID: 1030
		private uint pointId_;

		// Token: 0x04000407 RID: 1031
		public const int LevelFieldNumber = 2;

		// Token: 0x04000408 RID: 1032
		private uint level_;
	}
}
